/**
 * Data class containing customer information.
 * 
 * Getters and setters. Nothing unusual.
 * 
 * @author svene_000
 *
 */
public class Customer {

	private String firstName;
	private String lastName;
	private String streetAddress;
	private String zipcode;
	private String town;
	private String country;
	
	public Customer (String firstName, String lastName, String streetAddress, 
			String zipcode, String town, String country){
		this.firstName = firstName;
		this.lastName = lastName;
		this.streetAddress = streetAddress;
		this.zipcode = zipcode;
		this.town = town;
		this.country = country;
	}
	
	public Customer (){
		this.firstName = "default";
		this.lastName = "default";
		this.streetAddress = "default";
		this.zipcode = "default";
		this.town = "default";
		this.country = "default";
	}
	
	public String getName(){
		return this.lastName+", "+this.firstName;
	}

	public String getStreetAddress(){
		return this.streetAddress;
	}
	
	public String getZipcode(){
		return this.zipcode;
	}
	
	public String getTown(){
		return this.town;
	}
	
	public String getCountry(){
		return this.country;
	}
	
	public boolean setFirstName(String firstName){
		this.firstName = firstName;
		return true;
	}
	
	public boolean setLastName(String lastName){
		this.lastName = lastName;
		return true;
	}
	
	public boolean setStreetAddress(String streetAddress){
		this.streetAddress = streetAddress;
		return true;
	}
	
	public boolean setZipcode(String zipcode){
		this.zipcode = zipcode;
		return true;
	}
	
	public boolean setTown(String town){
		this.town = town;
		return true;
	}
	
	public boolean setCountry(String country){
		this.country = country;
		return true;
	}
}
